import Layout from '../../views/layout/Layout'

const router = {}

//商品配置
router.routerMallSetting =
	{
		path: '/mall',
		component: Layout,
		meta: {
			title: '商城商品配置',
			icon: 'mall'
		},
		children: [
			{
				path: '/mall/mall__setting',
				component: () => import('@/views/app/mall/mall__setting')
			},
			{
				path: '/mall/mall__group__list',
				component: () => import('@/views/app/mall/mall__group__list')
			},
			{
				path: '/mall/mall__group__edit',
				component: () => import('@/views/app/mall/mall__group__edit')
			},
			{
				path: '/mall/mall__spu__list',
				component: () => import('@/views/app/mall/mall__spu__list')
			},
			{
				path: '/mall/mall__spu__edit',
				component: () => import('@/views/app/mall/mall__spu__edit')
			},
			{
				path: '/mall/mall__freight__list',
				component: () => import('@/views/app/mall/mall__freight__list')
			},
			{
				path: '/mall/mall__freight__edit',
				component: () => import('@/views/app/mall/mall__freight__edit')
			},
			{
				path: '/mall/mall__freight__city__list',
				component: () => import('@/views/app/mall/mall__freight__city__list')
			},
			{
				path: '/mall/mall__freight__city__edit',
				component: () => import('@/views/app/mall/mall__freight__city__edit')
			},
			{
				path: '/mall/mall__order_item__list',
				component: () => import('@/views/app/mall/mall__order_item__list')
			},
			{
				path: '/mall/mall__refund_item__list',
				component: () => import('@/views/app/mall/mall__refund_item__list')
			},
		]
	}

//商城-订单管理
router.routerMallOrder =
	{
		path: '/media',
		component: Layout,
		meta: {
			title: '商城-订单管理',
			icon: 'mall'
		},
		children: [
			{
				path: '/mall/mall__order',
				component: () => import('@/views/app/media/media__list')
			}
		]
	}

export default router
